package edu.sdbi.judge.controller;

import edu.sdbi.judge.domain.vo.StudentResult;
import edu.sdbi.judge.service.impl.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/testSKJudge_11")
public class TestJudgeSKController {
    @Autowired
    private Judge_11 judge11;

    @GetMapping("/test11")
    public StudentResult test11() {
        return judge11.getJudgeIpResult("localhost:8080");
    }

    @Autowired
    private Judge_12 judge12;

    @GetMapping("/test12")
    public StudentResult test12() {
        return judge12.getJudgeIpResult("localhost:8080");
    }

    @Autowired
    private Judge_13 judge13;

    @GetMapping("/test13")
    public StudentResult test13() {
        return judge13.getJudgeIpResult("localhost:8080");
    }

    @Autowired
    private Judge_14 judge14;

    @GetMapping("/test14")
    public StudentResult test14() {
        return judge14.getJudgeIpResult("localhost:8080");
    }

    @Autowired
    private Judge_15 judge15;

    @GetMapping("/test15")
    public StudentResult test15() {

        return judge15.getJudgeIpResult("localhost:8080");
    }
}
